home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16676 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: HOPPER.ACM.ORG!news
  2. From: varnk@e62.diebold.com (Ken Varn)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: C++ beginner quesion on data member access.
  5. Date: 11 Apr 1996 18:10:09 GMT
  6. Organization: Diebold
  7. Message-ID: <4kjhu2$338@HOPPER.ACM.ORG>
  8. References: <4kgb76$r3s@HOPPER.ACM.ORG> <Dpnpqz.2Io@presby.edu>
  9. NNTP-Posting-Host: 199.218.232.47
  10. Mime-Version: 1.0
  11. Content-Type: Text/Plain; charset=US-ASCII
  12. X-Newsreader: WinVN 0.99.7
  13.  
  14. In article <Dpnpqz.2Io@presby.edu>, jtbell@presby.edu says...
  15. >
  16. >At some point in the future, you might want to change the way the member
  17. >data is organized, after which the value in question might not be stored 
  18. >directly as a member data item, but can be calculated from other member 
  19. >data.  The classic example of this is rectangular versus polar 
  20. >representation for complex numbers:
  21. >
  22.  
  23. I am not questioning the validity of performing calculations using get or set 
  24. member functions, I am mainly interested in if you should or should not 
  25. always use get and set member functions when accessing data members if no 
  26. calculations are needed.
  27.  
  28.